package studentcourse.entity;

//无继承

public class Course {
    private String courseId;       // 课程ID
    private String courseName;     // 课程名
    private String courseLocation; // 上课地点
    private String courseTime;     // 上课时间
    private String courseTeacher;  // 授课教师ID

    //初始化所有课程属性
    public Course(String courseId, String courseName, String courseLocation, String courseTime, String courseTeacher) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.courseLocation = courseLocation;
        this.courseTime = courseTime;
        this.courseTeacher = courseTeacher;
    }

    //外部包访问/修改
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseLocation() {
        return courseLocation;
    }

    public void setCourseLocation(String courseLocation) {
        this.courseLocation = courseLocation;
    }

    public String getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(String courseTime) {
        this.courseTime = courseTime;
    }

    public String getCourseTeacher() {
        return courseTeacher;
    }

    public void setCourseTeacher(String courseTeacher) {
        this.courseTeacher = courseTeacher;
    }
}